package com.amigo.online.provider.adv.entity;

import java.util.Map;

import javax.persistence.Id;

public class RequestLog {
    @Id
    private String id;
    private long startTime;
    private String url;
    private String requestType;
    private String paramData;
    private String sessionId;
    private Map<String, String> headerMap;
    private Map<String, String> paramMap;
    private String ip;
    private String action;
    private String targetType;
    private String method;
    private String classMethod;
    private String args;
    private long endTime;
    private int status;
    private long duration;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRequestType() {
        return requestType;
    }

    public void setRequestType(String requestType) {
        this.requestType = requestType;
    }

    public String getParamData() {
        return paramData;
    }

    public void setParamData(String paramData) {
        this.paramData = paramData;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public Map<String, String> getHeaderMap() {
        return headerMap;
    }

    public void setHeaderMap(Map<String, String> headerMap) {
        this.headerMap = headerMap;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getTargetType() {
        return targetType;
    }

    public void setTargetType(String targetType) {
        this.targetType = targetType;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getClassMethod() {
        return classMethod;
    }

    public void setClassMethod(String classMethod) {
        this.classMethod = classMethod;
    }

    public String getArgs() {
        return args;
    }

    public void setArgs(String args) {
        this.args = args;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public Map<String, String> getParamMap() {
        return paramMap;
    }

    public void setParamMap(Map<String, String> paramMap) {
        this.paramMap = paramMap;
    }

    public RequestLog() {
        super();
        this.startTime = System.currentTimeMillis();
    }

    @Override
    public String toString() {
        return "RequestLog [id=" + id + ", startTime=" + startTime + ", url=" + url + ", requestType=" + requestType
                + ", paramData=" + paramData + ", sessionId=" + sessionId + ", headerMap=" + headerMap + ", paramMap="
                + paramMap + ", ip=" + ip + ", action=" + action + ", targetType=" + targetType + ", method=" + method
                + ", classMethod=" + classMethod + ", args=" + args + ", endTime=" + endTime + ", status=" + status
                + ", duration=" + duration + "]";
    }

}
